﻿@model HawaiRestaurant.Models.DataContext.Staff

@{
    ViewBag.Title = "EditStaff";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Edit Staff</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>




@using (Html.BeginForm("EditStaff", "Admin", FormMethod.Post, new {@class = "niceform"}))
{
    @Html.ValidationSummary(true)
    <fieldset>
      @Html.HiddenFor(model => model.StaffId)
        <dl >
            <dt>
                <label for="name">Staff Name:</label>
            </dt>
            <dd>
            
                @Html.EditorFor(model => model.Name)

                @Html.ValidationMessageFor(model => model.Name)
            </dd>
        </dl>
        <dl >
            <dt>
                <label for="name">Phone Number:</label>
            </dt>
            <dd>
            
                @Html.EditorFor(model => model.PhoneNumber)

                @Html.ValidationMessageFor(model => model.PhoneNumber)
            </dd>
        </dl>
           
        <dl >
            <dt>
                <label for="name">Address :</label>
            </dt>
            <dd>
            
                @Html.EditorFor(model => model.Address)

                @Html.ValidationMessageFor(model => model.Address)
            </dd>
        </dl>
           
        <dl >
            <dt>
                <label for="name">Is Admin :</label>
            </dt>
            <dd>
            
                @Html.EditorFor(model => model.IsAdmin)
                @Html.ValidationMessageFor(model => model.IsAdmin)
            </dd>
        </dl>
        <dl class="submit" style="margin-left: -50px">
            <dd>
                <input id="submit" class="NFButton" type="submit" value="Submit" name="submit"> 
            </dd>
        </dl>
    </fieldset>
}


<div>
    @Html.ActionLink("Back to List", "ListStaff")
</div>




